try {

  define([ "common" ], function($) {
    window.debug = false;
    //window.encrypt=undefined;
    window.imgs = {};
    window.imgs_settings = {
      "azcat" : "./img/azcat.png",
      "bg" : "./img/bg.png",
      "bg1" : "./img/bg1.png",
      "bigcup" : "./img/bigcup.png",
      "bighead" : "./img/bighead.png",
      "cake1" : "./img/cake1.png",
      "cake1sdw" : "./img/cake1sdw.png",
      "cake2" : "./img/cake2.png",
      "cake2sdw" : "./img/cake2sdw.png",
      "cake3" : "./img/cake3.png",
      "cake3sdw" : "./img/cake3sdw.png",
      "delete":"./img/delete.png",
      "gegewu" : "./img/gegewu.png",
      "mouse" : "./img/mouse.png",
      "mousesdw" : "./img/mousesdw.png",
      "nuts" : "./img/nuts.png",
      "nutssdw" : "./img/nutssdw.png",
      "priceBg":"./img/priceBg.png",
      "txtAzCat" : "./img/txtAzCat.png",
      "txtGargamel" : "./img/txtGargamel.png",
      "txtGgwAndAzc" : "./img/txtGgwAndAzc.png",
      "banner0" : "./img/banner0.jpg",
      "iconOrder" : "./img/iconOrder.png",
      "iconSettings" : "./img/iconSettings.png",
      "iconShoppingCart" : "./img/iconShoppingCart.png",
      "loading":"./img/loading.gif",
      "boom" : "./img/boom.png",
      "g0s" : "./img/g0.small.jpg",
      "g1s" : "./img/g1.small.jpg",
      "g2s" : "./img/g2.small.jpg",
      "g3s" : "./img/g3.small.jpg",
      "g4s" : "./img/g4.small.jpg",
      "g5s" : "./img/g5.small.jpg",
      "g6s" : "./img/g6.small.jpg",
      "g7s" : "./img/g7.small.jpg",
      "g8s" : "./img/g8.small.jpg",
      "g9s" : "./img/g9.small.jpg",
      "dg0s" : "./img/g0.desc.jpg",
      "dg1s" : "./img/g1.desc.jpg",
      "dg2s" : "./img/g2.desc.jpg",
      "dg3s" : "./img/g3.desc.jpg",
      "dg4s" : "./img/g4.desc.jpg",
      "dg5s" : "./img/g5.desc.jpg",
      "dg6s" : "./img/g6.desc.jpg",
      "dg7s" : "./img/g7.desc.jpg",
      "dg8s" : "./img/g8.desc.jpg",
      "dg9s" : "./img/g9.desc.jpg",
      "iconBack":"./img/iconBack.png",
      "iconHome":"./img/iconHome.png",
    };

    for (name in window.imgs_settings) {
      var src = window.imgs_settings[name];
      if ($.isFunction(src)) {
        continue;
      }
      var image = new Image();
      window.imgs[name] = image;
      image.loaded = false;
      image.onload = function() {
        this.loaded = true;
      };
      image.src = src;
    }

    window.COLOR = {
        clrButtonBg:"red"
    };

    window.FONT = {
      pingfangL : function(size) {
        return " " + (size) + "px Georgia";
      },
      pingfangB : function(size) {
        return " " + (size) + "px Georgia";
      },
      pingfangR : function(size) {
        return " " + (size) + "px Georgia";
      },
      titleFont : function(size) {
        return " " + (size) + "px Georgia";
      },
      miaowu : function(size) {
        return " " + (size) + "px miaowu";
      }
    }


    window.PAINTS={
	footTxt:function(c,fs){
	    c.font = FONT.pingfangR(fs);
	    c.fillStyle="white";
	},
	pntOrderTitle:function(c,fs){
	    c.font = FONT.pingfangB(fs);
	    c.fillStyle="white";
	}
    }

    return $;
  });
} catch (e) {
  console.log(e);
}
